package com.monitor.controller;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.monitor.entity.ErpWarehouse;
import com.monitor.service.ErpHcService;
import com.monitor.util.Result;

import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;

/**
 * <p>
 * 耗材明细 前端控制器
 * </p>
 *
 * @author 
 * @since 2018-11-27
 */
@RestController
@RequestMapping("/erpHc")
public class ErpHcController {
	@Autowired
	private ErpHcService erpHcService;
	
	@RequestMapping("/selectByCarPlate")
	 @ApiOperation("耗材库查询")
	@ApiImplicitParam(name = "wareId", value = "仓库id", required = false, dataType = "int", paramType = "query")
	public Result<List<ErpWarehouse>> selectByCarPlate(int wareId){
		return erpHcService.selectByCarPlate(wareId);
	}
}

